package com.practice.backend.Entity;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
public class OrderWithName {

    private int id; // 订单 ID

    private int goodsId; // 货物 ID

    private String goodsName;// 货物名称

    private double cost; // 花费

    private int wareHouseId; // 相关仓库 ID

    private String type; // 类型

    private String customerName; // 客户名

    private String customerPhone; // 客户电话

    private int dealCount; // 购买数量

    private LocalDateTime dealTime; // 购买时间

    private String dealPurpose; // 购买货物用途

    private int goodsQuality; // 货品质量

    private int userId; // 负责人 ID

    private String userName;

    public OrderWithName(double cost, String customerName, String customerPhone, int dealCount, String dealPurpose, LocalDateTime dealTime, int goodsId, String goodsName, int goodsQuality, int id, String type, int userId, int wareHouseId , String userName) {
        this.cost = cost;
        this.customerName = customerName;
        this.customerPhone = customerPhone;
        this.dealCount = dealCount;
        this.dealPurpose = dealPurpose;
        this.dealTime = dealTime; // 确保 dealTime 被正确传递
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsQuality = goodsQuality;
        this.id = id;
        this.type = type;
        this.userId = userId;
        this.wareHouseId = wareHouseId;
        this.userName = userName;
    }
}
